package org.example.system.validator;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Constraint(validatedBy = StatusValidator.class)
public @interface Status {

    String[] statusValues() default {"0","1"};

    String message() default "状态值传递有误！";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
